package com.springdemo.spring5.bean;

/**
 * Created with IntelliJ IDEA.
 * User: zjz
 * Date: 2022/02/23 16:07
 * Description:
 * Version: V1.0
 */

//员工类
public class Employee {
    private String ename;
    private String eender;
    //员工属于某一个部门，使用对象表示
    private Department department;

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }
    public void setEender(String eender) {
        this.eender = eender;
    }
    public void setEname(String ename) {
        this.ename = ename;
    }
    public void test(){
        System.out.println(ename+"  "+eender+"  "+department);
    }
}
